import dayjs from 'dayjs'
import Module from '@/components/popSheet'
const $sleep = () => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve(123)
    }, 3000)
  })
}

const dateFrom = (time) => {
  return dayjs().from(time)
}
export default {
  install (Vue) {
    Vue.prototype.$sleep = $sleep
    Vue.filter('dateFrom', dateFrom)
    Vue.component('Module', Module)
  }
}
